'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    let {service,request,query} = this.ctx;
    // let result1=await service.goodsTypeService.list("我好帅");
    console.log(2222);
    console.log(99999);
    let result1=await service.goodsTypeService.doEdit("5baf319abee4cc26e47833de");
    this.success({data:result1})
  }
  async login() {
    const { ctx } = this;
    ctx.body = { status: 0, msg: '用户名或密码错误' };
  }
}

module.exports = HomeController;
